package savi.jdo;

import java.util.Date;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Event {

	@PrimaryKey
	@Persistent
	private String eventID;

	@Persistent
	private String ownerID;

	@Persistent
	private String moduleID;

	@Persistent
	private String type;

	@Persistent
	private String location;

	@Persistent
	private Date startTime;

	@Persistent
	private Date endTime;

	@Persistent
	private String description;

	public Event(String eventID, String ownerID, String moduleID, String type,
			String location, Date startTime, Date endTime, String description) {
		this.eventID = eventID;
		this.ownerID = ownerID;
		this.moduleID = moduleID;
		this.type = type;
		this.location = location;
		this.startTime = startTime;
		this.endTime = endTime;
		this.description = description;
	}

	public String getEventID() {
		return this.eventID;
	}

	public String getOwnerID() {
		return this.ownerID;
	}

	public String getModuleID() {
		return this.moduleID;
	}

	public String getType() {
		return this.type;
	}

	public String getLocation() {
		return this.location;
	}

	public Date getStartTime() {
		return this.startTime;
	}

	public Date getEndTime() {
		return this.endTime;
	}

	public String getDescription() {
		return this.description;
	}

	public void setEventID(String eventID) {
		this.eventID = eventID;
	}

	public void setOwnerID(String ownerID) {
		this.ownerID = ownerID;
	}

	public void setModuleID(String moduleID) {
		this.moduleID = moduleID;
	}

	public void setType(String type) {
		this.type = type;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
